body {
    background-color: gainsboro;
    width: 100%;
    font-size: 2vb;

}

/* 顶部返回栏组件 */
#top {
    width: 100%;
    height: 5.5vh;
    font-size: 2.1vb;
    font-weight: bold;
    margin-bottom: 0.5vh;
    background-color: white;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#top #form {
    height: 4vh;
    width: 38vw;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fixed-top {
	position: fixed;
	/* 固定定位 */
	top: 0;
	/* 距顶部0像素 */
	left: 0;
	right: 0;
	/* 左右边界撑满整个屏幕 */
	z-index: 999;
	/* 确保展示在最上层 */
}


.return {
    height: 3.5vh;
    width: auto;
    position: absolute;
    left: 0.5vw;
    /* 垂直居中 */
    margin: auto;
    top: 0;
    bottom: 0;
}


.massage-page-more {
    height: 4vh;
    width: auto;
    position: absolute;
    right: 2vw;
    /* 垂直居中 */
    margin: auto;
    top: 0;
    bottom: 0;
}

.chat-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    border-radius: 10px;
    overflow: hidden;
}

.messages {
    height: 100%;
    overflow-y: scroll;
    padding: 10px;
    margin-top: 5.5vh;
    display: flex;
    flex-direction: column;
    margin-bottom: 8vh;
}

.input-area {
    display: flex;
    padding: 10px;
    background-color: #fff;
    position: fixed;
    bottom: 0;
    width: 100%;
}

#message-input {
    flex-grow: 1;
    padding: 10px;
    border: none;
    border-radius: 20px;
    background-color: #f0f0f0;
}

#send-btn {
    margin-left: 10px;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

.message {
    max-width: 70%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 10px;
    word-wrap: break-word;
}

.sent {
    align-self: flex-end;
    background-color: #dcf8c6;
    margin-right: 10px;
}

.received {
    align-self: flex-start;
    background-color: #fff;
    margin-left: 10px;
}